package com.ymx.darling.dialect.keygenerator;

import com.ymx.darling.bean.entity.id.IdType;
import com.ymx.darling.bean.sql.Statement;
import com.ymx.darling.executor.Executor;

import java.sql.PreparedStatement;
import java.util.List;

/**
 * 不执行任何主键操作
 * @author 爱Java的小于
 */
public class NoneKeyGenerator implements KeyGenerator {
    @Override
    public void processBefore(List<Object> entityList, Statement statement) {
    }

    @Override
    public void processAfter(List<Object> entityList, Statement statement, PreparedStatement preparedStatement) {
    }

    @Override
    public IdType getIdType() {
        return IdType.INPUT;
    }
}
